/**
 * 
 */
package com.hson.demo.base.exception;

/**
 * @author Hungel.zou
 * @time 2016年3月3日 下午3:32:02
 */
public class BaseException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3824185206436240711L;

	public BaseException() {
        super();
    }
	
	public BaseException(Throwable cause) {
        super(cause);
    }
	
	public BaseException(String errorMsg) {
		super(errorMsg);
		this.errorMsg = errorMsg;
	}

	public BaseException(Integer errorCode, String errorMsg) {
		super();
		this.errorCode = errorCode;
		this.errorMsg = errorMsg;
	}

	public BaseException(Integer errorCode, String errorMsg, Throwable t) {
		super(t);
		this.errorCode = errorCode;
		this.errorMsg = errorMsg;
	}
	
	protected String errorMsg;
	
	protected Integer errorCode;

	public Integer getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(Integer errorCode) {
		this.errorCode = errorCode;
	}

	public String getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}
}
